package model

// by daoyi
import "time"

type Order struct {
	Id              uint      `gorm:"primary_key"`
	CreatedAt       string    `gorm:"column:create_at;default:null"`
	UpdatedAt       string    `gorm:"column:update_at;default:null"`
	DeletedAt       time.Time `gorm:"index"`
	OrderNo         string    `gorm:"column:order_no;comment:订单号"`
	ProjectName     string    `gorm:"project_name:type;comment:项目名"`
	Status          uint      `gorm:"column:status;comment:1项目已完成，2项目审核中，3项目待审核，4项目采购中"`
	NumType         uint      `gorm:"column:num_type;comment:项目采购物品类型数量"`
	ContractType    uint      `gorm:"column:contract_type;default:1;comment:合同类型：1图片类型，2文字类型"`
	ContractNo      uint      `gorm:"column:contract_no;default:1;comment:合同编号"`
	ContractContent uint      `gorm:"column:contract_content;comment:合同内容"`
	ContractPrice   float64   `gorm:"type:decimal(10,2);column:contract_price;comment:合同价格"`
	Duty            uint      `gorm:"column:duty;comment:责任人"`
	Process         uint      `gorm:"column:process;comment:审核人"`
	ProcessTime     uint      `gorm:"column:process_time;comment:审核时间"`
}
